home *** CD-ROM | disk | FTP | other *** search
- Path: news.th-darmstadt.de!news
- From: enno@inferenzsysteme.informatik.th-darmstadt.de (Enno Sandner)
- Newsgroups: comp.lang.c++
- Subject: Re: int::~int()
- Date: 14 Apr 1996 10:10:29 +0200
- Organization: Fachbereich Informatik, TH Darmstadt
- Sender: enno@kitz.inferenzsysteme.informatik.th-darmstadt.de
- Message-ID: <ltlojzns3u.fsf@kitz.inferenzsysteme.informatik.th-darmstadt.de>
- References: <317083F7.116E@public.sta.net.cn>
- NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
- In-reply-to: Xu Yifeng's message of Sun, 14 Apr 1996 13:49:59 +0900
- X-Newsreader: Gnus v5.1
-
- In article <317083F7.116E@public.sta.net.cn> Xu Yifeng <jafd@public.sta.net.cn> writes:
-
- Hi everybody,
-
- can your compiler compile following program?
-
- //------------------------
- void main()
- {
- int i = 0;
-
- i.int::~int();
- }
- //------------------------
-
- is it a legal C++ program?
-
- It's legal C++ (check out DWP 12.4:12) and e.g. g++2.6.3
- compiles this code without any problems.
- The explicit invocation of the int-dtor has no effect.
-
- Enno
-
-